package com.huatai.common.httputil;

/**
 * @program: ht-system
 * @description:
 * @author: songxiude
 * @create: 2023-04-25 15:28
 **/
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import javax.net.ssl.X509TrustManager;

public class DisableValidationTrustManager implements X509TrustManager {
	public static final X509TrustManager INSTANCE = new DisableValidationTrustManager();

	public DisableValidationTrustManager() {
	}

	public void checkClientTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException {
	}

	public void checkServerTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException {
	}

	public X509Certificate[] getAcceptedIssuers() {
		return new X509Certificate[0];
	}
}
